package com.lagou.sql;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kirito
 * @description: sql执行器
 * @date 2020/03/25
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    void close() throws SQLException;

    void update(Configuration configuration, MappedStatement statement, Object... params) throws Exception;
}
